package business.report.impl;

import business.report.ConstructSupervisionEnterpriseService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import report.domain.ConstructSupervisionEnterprise;
import report.domain.ConstructSupervisionEnterpriseCriteria;
import report.mapper.ConstructSupervisionEnterpriseMapper;

import java.util.List;

/**
 * Created by silenceholic on 2016/6/19.
 */
@Service(value = "csEnterprisesService")
public class ConstructSupervisionEnterpriseServiceImpl implements ConstructSupervisionEnterpriseService{
    @Autowired
    ConstructSupervisionEnterpriseMapper constructSupervisionEnterpriseMapper;

    @Override
    public List<ConstructSupervisionEnterprise> getConstructSupervisionEnterprise() {
        ConstructSupervisionEnterpriseCriteria criteria = new ConstructSupervisionEnterpriseCriteria();
        criteria.createCriteria().getAllCriteria();
        return constructSupervisionEnterpriseMapper.selectByExample(criteria);
    }
}
